package com.hwadee.backend.service;

import com.hwadee.backend.entity.DataAnalysis.BasicData;
import com.hwadee.backend.mapper.HealthDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

@Service
public class HealthDataService {
    @Autowired
    private HealthDataMapper healthDataMapper;

    public List<BasicData> getHealthDataByUserId(Integer userId) {
        return healthDataMapper.selectByUserId(userId);
    }

}